package com.shou.domain.reserve.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shou.domain.common.IBaseService;
import com.shou.domain.common.PageQueryEntity;
import com.shou.domain.reserve.model.ReservationEntity;

/**
* @author Nemo
* @description 针对表【reservations(预定表，用于管理车位的预定情况)】的数据库操作Service
* @createDate 2025-02-07 22:10:51
*/
public interface IReservationService extends IBaseService {
    /**
     * 增加车位
     */
    Integer insertReservation(ReservationEntity reservation);

    /**
     * 根据ID查询车位
     */
    ReservationEntity getReservationById(Integer id);

    /**
     * 分页查询车位
     */
    IPage<ReservationEntity> pageQuery(PageQueryEntity pageQueryEntity);

    /**
     * 更新车位
     */
    void updateReservationById(ReservationEntity reservationEntity);
}
